From bfdb9c32bdb3d2827d5c8b246071aa927633e2e3 Mon Sep 17 00:00:00 2001 From: Pavel Potocek Date: Thu, 24 Aug 2017 10:52:12 +0200 Subject: [PATCH] Correct and reword a paragraph The previous formulation was incorrect in the descriptions of the `x` and `y` version numbers. --- src/doc/specifying-dependencies.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/doc/specifying-dependencies.md b/src/doc/specifying-dependencies.md index f68f804ec..3ab0d5716 100644 --- a/src/doc/specifying-dependencies.md +++ b/src/doc/specifying-dependencies.md @@ -47,10 +47,10 @@ be allowed with them: ^0 := >=0.0.0 <1.0.0 ``` -While SemVer says that there is no compatibility before 1.0.0, many programmers -treat a `0.x.y` release in the same way as a `1.x.y` release: that is, `y` is -incremented for bugfixes, and `x` is incremented for new features. As such, -Cargo considers a `0.x.y` and `0.x.z` version, where `z > y`, to be compatible. +This compatibility convention is different from SemVer in the way it treats the +versions before 1.0.0. While SemVer says there is no compatibility before +1.0.0, Cargo considers any `0.x.y` and `0.x.z` versions, where `z ≥ y`, to be +compatible. ## Tilde requirements -- 2.30.2